<template>
  <div class="app-container">

    <el-row>
      <el-breadcrumb separator="/">
        <el-breadcrumb-item>主页</el-breadcrumb-item>
        <el-breadcrumb-item>系统设置</el-breadcrumb-item>
        <el-breadcrumb-item>角色管理</el-breadcrumb-item>
      </el-breadcrumb>
    </el-row>
    <el-row>

      <el-col span="24">
        <el-form label-width="100px">

          <el-row>

            <el-col :span="8">

              <el-form-item label="角色名称">
                <el-input></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="启用状态">
                <el-input></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item>
                <el-button type="primary">搜索</el-button>
              </el-form-item>
            </el-col>


          </el-row>


        </el-form>
      </el-col>
    </el-row>
    <el-row>


      <el-button-group>
        <el-button type="success">添加角色</el-button>
        <el-button type="info">上传</el-button>
        <el-button type="warning">下载</el-button>
      </el-button-group>


      <el-table :data="data.tableData">
        <el-table-column prop="roleName" label="角色名称"/>


      </el-table>

    </el-row>


  </div>
</template>

<script setup>

import request from "../../utils/request.js";

import {onMounted} from 'vue'





const data = reactive({
  tableData: [
  ]
})

onMounted(() => {

  request.get("http://test.org/role").then((res) => {

    console.log(res)

    data.tableData = res.data;

  })

})

</script>

<style scoped lang="scss">


.el-row {

  padding: 8px;
}

</style>